package mapper.user;

import org.apache.ibatis.annotations.Param;
import pojo.StorageRecord;
import pojo.Supplier;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface StorageRecordMapper {
    //根据商品名称供货商id支付状态查询入库记录
    public List<StorageRecord> getStorageRecordList(@Param("goodsName")String goodsName, @Param("supplierId")Integer supplierId,@Param("payStatus")Integer payStatus,@Param("createdTime") Date createdTime);

    //根据id查询入库列表
    public List<StorageRecord> getByIdArray(Integer[] ids);

    //根据id查询入库列表
    public List<StorageRecord> getByIdList(List<StorageRecord> storageRecordList);

    //根据id查询入库列表
    public List<StorageRecord> getByIdMap(Map<String, Object> map);

    //分页查询入库列表
    public List<StorageRecord> selectPageList(@Param("goodsName") String supName,@Param("supplierId")Integer supplierId,@Param("payStatus")Integer payStatus,@Param("pageBegin") Integer pageBegin,@Param("pageSize") Integer pageSize);

    //新增入库单
    public int add(StorageRecord storageRecord);

    //根据入库单id修改入库单
    public int update(StorageRecord storageRecord);

    //根据入库单id删除入库单
    public int delete(@Param("id") Integer id);
}
